package com.seasugar.raggie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seasugar.raggie.model.entity.Category;
import com.seasugar.raggie.mapper.CategoryMapper;
import com.seasugar.raggie.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> findCategoriesByType(Integer type) {
        return categoryMapper.findCategoriesByType(type);
    }
}
